/**
 * GExporter 1.0 - Exports your gmail address book with great flexibility.
 * Copyright (C) 2005 Karthik V (karthiksden@gmail.com)
 * This software is distributed under GNU GPL ( http://www.gnu.org/copyleft/gpl.html )
 */

package vkarthik.gtools.gexport;

public class GExInfo implements java.io.Serializable {

    public String fileLocation = "";
    public String separator = "";
    public String separatorChar = "";
    public String separatorCount = "";
    public String[] exportFields = null;
    public String exportType = "";
    public String searchString = "";
    public String searchField = "";
    public String searchRule = "";

    public String user = "";
    public String password = "";

    public GExInfo() {

    	exportFields = new String[0];
    }

    public String toString() {

		StringBuffer sb = new StringBuffer();
		sb.append("Export Type: " + exportType).append("\n");
		sb.append("Search String: " + searchString).append("\n");
		sb.append("Search Field: " + searchField).append("\n");
		sb.append("Search Rule: " + searchRule).append("\n");
		sb.append("Separator: " + separator).append("\n");
		sb.append("File Location: " + fileLocation).append("\n");
		sb.append("User: " + user).append("\n");
		sb.append("Password: " + password).append("\n");
		sb.append("Export Fields: ").append("\n");
		for(int i=0;i<exportFields.length;i++) {
			sb.append(exportFields[i]).append("\n");
		}
		return sb.toString();
	}
}